<?php require('template/header.php') ?>
 
  <?php
  $row = $data['user'];
  $uid = $row['uid'];
  $name = $row['name'];
  $sex = $row['sex'];
  $password = $row['password'];
  $phone = $row['phone'];
 ?>

 <div id="page-wrapper">
 <div class="container-fluid col-md-offset-1 col-md-10">
 <form class="form-horizontal" method="post" action="index.php?c=user&m=updateuser" enctype="multipart/form-data">
    <div class="form-group">
      <label class="col-md-2 control-label">用户编号</label>
      <div class="col-md-4">
        <label class="control-label"><?php echo $uid; ?></label>
        <input type="hidden" name="uid" class="form-control" value=<?php echo $uid; ?>></input>
      </div>
    </div>


    <div class="form-group">
      <label class="col-md-2 control-label">用户姓名</label>
      <div class="col-md-4">
        <input type="text" name="name" class="form-control" value=></input>
      </div>
    </div>


    <div class="form-group">
      <label class="col-md-2 control-label">用户性别</label>
      <div class="col-md-4">
         <label class="radio-inline">
          <input type="radio" name="sex"  value=0 <?php if($sex==0) echo 'checked'; ?>>男</label>
        <label class="radio-inline">
          <input type="radio" name="sex" value=1 <?php if($sex==1) echo 'checked'; ?>>女</label>
      </div>
    </div>

    <div class="form-group">
      <label class="col-md-2 control-label">用户密码</label>
      <div class="col-md-4">
         <input type="password" name="password" class="form-control" value=<?php echo $password; ?>></input>
      </div>
    </div>

    <div class="form-group">
      <label class="col-md-2 control-label">用户电话</label>
      <div class="col-md-4">
         <input type="number" name="phone" class="form-control" value=<?php echo $phone; ?>></input>
      </div>
    </div>
    


    <div class="form-group">
      <label class="col-md-2 control-label">操作</label>
      <div class="col-md-4">
        <input type="submit" value="更新" class="btn btn-default"></input>
        <input type="reset" value="重置" class="btn btn-default"></input>
      </div>
    </div>
 </form>
 </div>


                    </div>
                </div>

            </div>

        </div>
        </div>
<?php require('template/footer.php') ?>